package com.sunny.design.singleton.thread;

/**
 * @author Sunny
 * @date 2019/12/29 16:00
 */
public class ThreadLocalExecutor extends Thread {

    @Override
    public void run() {
        System.out.println(Thread.currentThread().getName() + ": " + ThreadSingleton.getInstance());
        System.out.println(Thread.currentThread().getName() + ": " + ThreadSingleton.getInstance());
        System.out.println(Thread.currentThread().getName() + ": " + ThreadSingleton.getInstance());
    }
}
